XY-plots Scatter plots, Regression lines and Curve fits are all referred to as “XY-plots”. Such plots are produced using data from a pair of data nodes. DynRisk allows you to produce any combination of the three XY-plot types in the same diagram. Moreover, you can copy curves from one plot window and paste it into another using the “Copy” and “Paste” commands in the “Edit” menu. If you do this, make sure that both plots have the same scale on both the X-axis and the Y-axis by using the “Set scale” command. Note also that you can add “gridlines” to the plots corresponding to certain key statistics for the data nodes. Specifically, you can have gridlines indicating the location of the following statistics: • Base value • Mean ± st.dev. • Fractiles The fractiles are chosen according to the currently selected fractile set. You can change this using the “Fractiles…” command. To display the gridlines, click anywhere in the plot window while pressing the “Command” key on the keyboard. This will bring up a popup menu from which you could select the desired statistics. To hide the gridlines, just repeat the same procedure. Scatter plot A “Scatter plot” is a graph consisting of a “cloud” of points reflecting the joint distribution of a pair of data nodes. Each point in the cloud represents corresponding values of the two data nodes from a single simulation. So if you make a “Scatter plot” from a simulation data file where each data node contains say 1000 values, then the plot will show a cloud of 1000 points. If the points are spread all over the diagram with no particular structure, this indicates that there is no dependence between the two variables. In particular the correlation between the two data nodes is neglectable. On the other hand if the points are clustered around a straight line, the correlation may be significant. If the points are clustered closely around some nonlinear curve, the correlation may be small. Still there appears to some sort of dependence between the two data nodes. If the frontmost window is a main document window for a simulation data file, the “Scatter plot” button produces scatter plots for all selected pairs of data nodes. To select a pair of data nodes, select the first one whose values should appear along the X-axis in the “First selection” mode, and the second one whose values should appear along the Y-axis in the “Second selection” mode. If the frontmost window is an “XY-plot” window created by using the “Scatter plot” button, this button is disabled. In this case the window title is of the form: (x) (y).scat where is the name of the node whose values appear along the X-axis and is the name of the node whose values appear along the Y-axis. If the frontmost window is an “XY-plot” window created by using either the “Regression line” button or the “Curve fit” button, the “Scatter plot” button is used to either hide or show a “Scatter plot” depending on the state of the window. If the plot already contains a scatter plot, you can use the “Scatter plot” button to hide this scatter. On the other hand, if the plot does not contain a scatter plot, then you can use the “Scatter plot” button to show it. Regression line A “Regression line” is a graph that represents a best linear approximation to the relation between two data nodes. To see how well this line describes the “real” relation between the data nodes, you can view the regression line in the same diagram as a scatter plot. If the points are clustered closely around the regression line, the linear approximation is good. You can also compare the regression line to a curve fit. If there is a strong linear relation between the data nodes, then the regression line and the curve fit will be similar. In such cases, you do not gain much by using a more flexible (and thus also more complex) functional relationship as offered by the curve fit. If the frontmost window is a main document window for a simulation data file, the “Regression line” button produces regression lines for all selected pairs of data nodes. To select a pair of data nodes, select the first one whose values should appear along the X-axis in the “First selection” mode, and the second one whose values should appear along the Y-axis in the “Second selection” mode. If the frontmost window is an “XY-plot” window created by using the “Regression line” button, this button is disabled. In this case the window title is of the form: (x) (y).reg where is the name of the node whose values appear along the X-axis and is the name of the node whose values appear along the Y-axis. If the frontmost window is an “XY-plot” window created by using either the “Scatter plot” button or the “Curve fit” button, this “Regression line” button is used to either hide or show a “Regression line” depending on the state of the window. If the plot already contains a regression line, you can use the “Regression line” button to hide this regression line. On the other hand, if the plot does not contain a regression line, then you can use the “Regression line” button to show it. Curve fit A “Curve fit” is a graph that attempts to describe the functional relation between two data nodes. To see how well this curve describes the “real” relation between the data nodes, you can view the curve fit in the same diagram as a scatter plot. If the points are clustered closely around the curve fit, there is a strong functional relation between the two data nodes. You can also compare the curve fit to a regression line. If there is a strong linear relation between the data nodes, then the regression line and the curve fit will be similar. In such cases, you do not gain much by using a more flexible (and thus also more complex) functional relationship as offered by the curve fit. DynRisk calculates the curve fit by modeling the relation between the two data nodes as a so-called Gaussian process. You can control how this is done by adjusting parameters such as “Resolution”, “Smoothness” and “Sensitivity”. To do this you select the node you want to adjust the parameter settings for and then use the “Curve fit settings…” command. If the frontmost window is a main document window for a simulation data file, the “Curve fit” button produces curve fits for all selected pairs of data nodes. To select a pair of data nodes, select the first one whose values should appear along the X-axis in the “First selection” mode, and the second one whose values should appear along the Y-axis in the “Second selection” mode. If the frontmost window is an “XY-plot” window created by using the “Curve fit” button, this button is disabled. In this case the window title is of the form: (x) (y).gf where is the name of the node whose values appear along the X-axis and is the name of the node whose values appear along the Y-axis. If the frontmost window is an “XY-plot” window created by using either the “Scatter plot” button or the “Regression line” button, the “Curve fit” button is used to either hide or show a “Curve fit” depending on the state of the window. If the plot already contains a curve fit, you can use the “Curve fit” button to hide this curve fit. On the other hand, if the plot does not contain a curve fit, then you can use the “Curve fit” button to show it.